 jQuery(document).ready(function () {
    if (jQuery("#copyright").length) {
        jQuery('<a style="display: inline !important; text-decoration: none; position: relative !important; bottom:0 !important; left:0 !important; visibility: visible !important; z-index: 9999 !important;" href="http://www.3dkraloyunlar.com"><br /><span style="color: #000 !important;">Blogger Template by Vina Themes</span></a>').insertAfter("#copyright");
    } else {
        document.location.href = "http://www.3dkraloyunlar.com";
    }; if (jQuery(".copyrighted").is(":hidden")) {
        document.location.href = "http://www.3dkraloyunlar.com";
    };
});
var szk = {
    id: {
        home: "www.3dkraloyunlar.com",
        link: "game_link",
        player: "game_player",
        dx: "game_embed",
        sv: "game_source",
        logo: "http://3.bp.blogspot.com/-N-gsS-i9Kxg/UW39Q1rIPtI/AAAAAAAAAJo/BG6DrlQntGM/s1600/logo.png"
    }
}, s = document.createElement("script");
s.id = szk.id.home;
var $_ = function (_0xfb02x6) {
    return document.getElementById(_0xfb02x6);
};
String.prototype.GetPart = function (_0xfb02x6) {
    var _0xfb02x7 = new RegExp("(^|&)" + _0xfb02x6 + "=([^&]*)(&|$)");
    var _0xfb02x8 = this.substr(this.indexOf("?") + 1).match(_0xfb02x7);
    if (_0xfb02x8 != null) {
        return unescape(_0xfb02x8[2]);
    };
    return null;
};

function SelectAll(_0xfb02xa) {
    document.getElementById(_0xfb02xa).focus();
    document.getElementById(_0xfb02xa).select();
};

function closeMyAd() {
    document.getElementById("divs").style.display = "none";
};
var $_ = function (_0xfb02x6) {
    return document.getElementById(_0xfb02x6);
};
String.prototype.GetPart = function (_0xfb02x6) {
    var _0xfb02x7 = new RegExp("(^|&)" + _0xfb02x6 + "=([^&]*)(&|$)");
    var _0xfb02x8 = this.substr(this.indexOf("?") + 1).match(_0xfb02x7);
    if (_0xfb02x8 != null) {
        return unescape(_0xfb02x8[2]);
    };
    return null;
};

function ANCMedia() {
    _lg = szk.id.logo;
    dl = szk.id.link;
    pl = szk.id.player;
    tp = szk.id.sv;
    playing = szk.id.dx;
    home = szk.id.home;

    function _0xfb02xd() {
        m_data = $_(dl).innerHTML;
        r_left = '<div id="r_data" style="display:none !important;" title="Data here !">';
        r_right = "</div>";
        m_data = m_data.replace(/\<id\>/gi, r_left);
        m_data = m_data.replace(/\<\/id\>/gi, r_right);
        m_data = m_data.replace(/\[id\]/gi, r_left);
        m_data = m_data.replace(/\[\/id\]/gi, r_right);
        $_(dl).innerHTML = m_data;
        m_data = $_("r_data").innerHTML;
        return m_data;
    };
    data = _0xfb02xd();
    l_spi = data.split("|").length;
    l_spk = function (_0xfb02x6) {
        return data.split("|")[_0xfb02x6].split(";").length;
    };
    d_spi = function (_0xfb02x6) {
        return data.split("|")[_0xfb02x6];
    };
    d_spk = function (_0xfb02x6, _0xfb02x7) {
        return data.split("|")[_0xfb02x6].split(";")[_0xfb02x7];
    };
    part = new Array();
    pc = ["0", "a", "b", "c", "d", "e", "f", "g", "h", "i", "k", "l", "m", "n", "o", "p", "q", "r", "s"];
    ab = "";
    part_ep = "";
    data_out = "";
    svl = "youtube.com,vn9.yl,vn9.mp4,vn9.flv,.swf,.html,iframe,docs.google.com,dailymotion.com,embed.videoweed.es,zing.vn,ps2.vn9,clip.vn,picasaweb.google.com,vidbull.com,4shared.com,videobb.com,videozer.com,zippyshare.com,novamov.com,twitvid.com,cyworld.vn,24video.net,movshare.net,veoh.com,blip.tv,sendspace.com,speedyshare.com,rolo.vn,tunescoop.com,eyvx.com,banbe.net,truongxua.vn,videobam.com,nhaccuatui.com,mediafire.com,vimeo.com,viddler.com,vidxden.com,xvideos.com,free18.net,nuvid.com,youjizz.com,eporner.com,gaytube.com,megafilex.com,porn.com,pornhub.com,pornoxo.com,redtube.com,slutload.com,spankwire.com,tnaflix.com,tube8.com,vtraxe.com,xhamster.com,xtube.com,xxxstash.com";
    svt = "Youtube,Gdata,MP4,FLV,Flash,HTML,HTML,Docs,daily,videoweed,Zing,Dream,Clip,Picasa,Zing,vidbull,4shared,Videobb,Videozer,Zippyshare,Novamov,Twitvid,Cyworld,24video,Movshare,Veoh,Blip,Sendspace,Speedyshare,Rolo,Tunescoop,Eyvx,Banbe,Truongxua,Videobam,Nhaccuatui,Mediafire,Vimeo,Viddler,Vidxden,Xvideos,Free18,Nuvid,Youjizz,Eporner,Gaytube,Megafilex,Porn,Pornhub,Pornoxo,Redtube,Slutload,Spankwire,Tnaflix,Tube8,Vtraxe,Xhamster,Xtube,Xxxstash";
    sv = svl.split(",");
    ten_sv = svt.split(",");
    this.Play = function () {
        for (var _0xfb02x6 = 0; _0xfb02x6 < ten_sv.length; _0xfb02x6++) {
            var _0xfb02x7 = ten_sv[_0xfb02x6].split(".")[0];
            if (_0xfb02x7 == "") {
                _0xfb02x7 = home;
            };
            part[_0xfb02x6] = '<li class="sev">+Server ' + _0xfb02x7 + ":</li>";
        };
        for (var _0xfb02x8 = 0; _0xfb02x8 < l_spi; _0xfb02x8++) {
            name_ep = d_spk(_0xfb02x8, 0);
            for (var _0xfb02xe = 0; _0xfb02xe < l_spk(_0xfb02x8); _0xfb02xe++) {
                link_ep = d_spk(_0xfb02x8, _0xfb02xe);
                number_ep = Number(d_spk(_0xfb02x8, 0));
                number_epp = "";
                if (_0xfb02x8 > 0) {
                    number_epp = Number(d_spk((_0xfb02x8 - 1), 0));
                };
                if (l_spk(_0xfb02x8) == 2) {
                    ab = "";
                    part_ep = "";
                } else {
                    ab = pc[_0xfb02xe];
                    part_ep = "-" + _0xfb02xe;
                };
                (number_ep) ? name_eppart = name_ep + ab : name_eppart = name_ep + part_ep;
                if (d_spk(_0xfb02x8, _0xfb02xe) != "") {
                    for (var _0xfb02x6 = 0; _0xfb02x6 < sv.length; _0xfb02x6++) {
                        (d_spk(_0xfb02x8, _0xfb02xe).indexOf(sv[_0xfb02x6]) != -1) ? part[_0xfb02x6] += "<li onclick="M.Load('" + link_ep + "','" + name_eppart + "');" class="ep"><a class="a_tap" rel="" + home + ":" + name_eppart + "" title="" + name_eppart + "" href="?p=" + _0xfb02x8 + "/" + _0xfb02xe + "/" + name_eppart.replace(/ /gi, "_") + "#x">&nbsp;" + name_eppart + "&nbsp;</a></li><!--ANCMedia Part-->" : false;
                    };
                };
            };
        };
        data_out += "<div id="list_tap">";
        if (l_spi >= 2) {
            for (var _0xfb02x6 = 0; _0xfb02x6 < sv.length; _0xfb02x6++) {
                (part[_0xfb02x6].indexOf("ANCMedia") != -1) ? data_out += "<ul id='" + _0xfb02x6 + "'>" + part[_0xfb02x6] + "<div style='clear:both;' ></div></ul>" : false;
            };
        } else {
            data_out += "<ul><li class="sev">+Server:</li>" + "<li class="ep"><a class="a_tap" rel="" + home + ": Xem ..y .." title="Xem ..y .." href="javascript:M.Load('", "', + data + 'Full_time');">Xem ..y ..</a></li></ul>";
        };
        data_out += "<div class="clear" /></div>";
        $_(tp).innerHTML = data_out;
    };
    this.Load = function (_0xfb02x6, _0xfb02x7) {
        obj = "";
        name_ep = "";
        if (_0xfb02x6.indexOf(sv[0]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/\/watch\?v=/gi, "/embed/");
            _0xfb02x6 = _0xfb02x6.replace(/\&feature=related/gi, "");
            obj = DBOj(_0xfb02x6)[2];
        };
        if (_0xfb02x6.indexOf(sv[1]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/vn9\.yl/gi, "http://www.youtube.com/p/");
            obj = DBOj(_0xfb02x6)[2];
        };
        if (_0xfb02x6.indexOf(sv[2]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/vn9\.mp4/gi, "http:");
            obj = DBOj(_0xfb02x6)[0];
        };
        if (_0xfb02x6.indexOf(sv[3]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/vn9\.flv/gi, "http:");
            obj = DBOj(_0xfb02x6)[0];
        };
        if (_0xfb02x6.indexOf(sv[4]) != -1) {
            obj = DBOj(_0xfb02x6)[3];
        };
        if (_0xfb02x6.indexOf(sv[5]) != -1) {
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[6]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/iframe/gi, "");
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[7]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/docs.google\.com/gi, "docs.google.com");
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[8]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/dailymotion\.com/gi, "dailymotion.com");
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[9]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/embed.videoweed\.es/gi, "embed.videoweed.es");
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[10]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/\+/gi, " ");
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[11]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/ps2\.vn9/gi, "https://picasaweb.google.com");
            obj = DBOj(_0xfb02x6)[1];
        };
        if (_0xfb02x6.indexOf(sv[12]) != -1) {
            _0xfb02x6 = _0xfb02x6.replace(/http:\/\/[\EMBED|\embed]*,/gi, "http://clip.vn/embed/");
            obj = DBOj(_0xfb02x6)[1];
        };
        for (var _0xfb02x8 = 13; _0xfb02x8 < sv.length; _0xfb02x8++) {
            if (_0xfb02x6.indexOf(sv[_0xfb02x8]) != -1) {
                obj = DBOj(_0xfb02x6)[0];
            };
        };
        if (Number(_0xfb02x7)) {
            name_ep = '<textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xfb02x6 + '" menu="false" quality="high" width="700" height="525" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.vn9.net/&quot;&gt;Click here to play more games!&lt;/a&gt;</textarea>';
        } else {
            if (_0xfb02x7.length >= 6) {
                name_ep = '<textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xfb02x6 + '" menu="false" quality="high" width="700" height="525" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.vn9.net/&quot;&gt;Click here to play more games!&lt;/a&gt;</textarea>';
            } else {
                if (!Number(_0xfb02x7) && _0xfb02x7.length < 6) {
                    name_ep = '<textarea class="embedcode" id="embed_code" onClick="SelectAll(&#039;embed_code&#039;);">&lt;embed src="' + _0xfb02x6 + '" menu="false" quality="high" width="700" height="525" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.vn9.net/&quot;&gt;Click here to play more games!&lt;/a&gt;</textarea>';
                };
            };
        };
        $_(pl).innerHTML = obj;
        $_(playing).innerHTML = name_ep;
    };
    this.Qstr = function () {
        str = window.location.href;
        part = str.GetPart("p");
        (part == null) ? part = "0/1/" + d_spk(0, 0) + "" : false;
        a = part.split("/")[0];
        b = part.split("/")[1];
        c = decodeURI(part.split("/")[2]);
        (l_spi >= 2) ? this.Load(d_spk(a, b), c) : this.Load(data, "Full_time");
    };
};
var DBOj = function (_0xfb02x6) {
    _em = 'type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" autostart="true" width="100%" height="100%"';
    _bb = '<div style="position:absolute;top:0;left:auto;width:100%;height:30px;margin:0;overflow:hidden;" id="divs"><img src="http://2.bp.blogspot.com/-sorFm6ADoAU/USXrq9g9hUI/AAAAAAAAA0k/3i9RBM7KZhc/s1600/spacer.png" height="30" width="100%"></div>';
    return obj = ['<embed name="flashplayer" src="http://chiase.cliphai.com/p/player.swf" FlashVars="plugins=http://chiase.cliphai.com/p/plugins/proxy.swf&proxy.link=' + _0xfb02x6 + "&autostart=true&skin=http://chiase.cliphai.com/p/skins/whotube/whotube.xml" " + _em + " />", '<iframe id="player" width="100%" height="100%" frameborder="0" src="' + _0xfb02x6 + ""/>", "<iframe width="100%" height="100%" src="" + _0xfb02x6 + "" frameborder="0" allowfullscreen="true"/>", "<div style="width:100%;height:100px;background:#eee;color:#000;">Sorry, you have no flash player installed.</div>", "<embed name="flashplayer" src="http://chiase.cliphai.com/p/player.swf" FlashVars="plugins=http://chiase.cliphai.com/p/plugins/proxy.swf&&file=" + _0xfb02x6 + "&streamer=rtmp://203.162.1.56/vod&autostart=true&proxy.nocachexml=true&proxy.nocacheswf=true&skin=http://chiase.cliphai.com/p/skins/whotube/whotube.xml" " + _em + " />", "<embed name="flashplayer" src="http://chiase.cliphai.com/p/player.swf" FlashVars="plugins=http://chiase.cliphai.com/p/plugins/proxy.swf&&file=" + _0xfb02x6 + "&streamer=rtmp://203.162.235.14:1935/vod/_definst_/mp4:&autostart=true&proxy.nocachexml=true&proxy.nocacheswf=true&skin=http://chiase.cliphai.com/p/skins/whotube/whotube.xml" " + _em + " />"];
};
M = new ANCMedia();
M.Play();
M.Qstr();
document.getElementsByTagName("head")[0].appendChild(s);

function setActive() {
    aObj = document.getElementById("list_tap").getElementsByTagName("a");
    for (i = 0; i < aObj.length; i++) {
        0 <= document.location.href.indexOf(aObj[i].href) && (aObj[i].className = "active");
    };
};
window.onload = setActive;